home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / dev / mui / bcc_src.lha / Parser / Global.cpp < prev    next >
C/C++ Source or Header  |  1998-03-15  |  627b  |  44 lines

  1. #include "Global.h"
  2. #include "TextItem.h"
  3.  
  4. GlobalDef ClassList;
  5.  
  6. InsertFile ins_every( ".bcc_every" );
  7. InsertFile ins_header( ".bcc_header" );
  8. InsertFile ins_code( ".bcc_code" );
  9. InsertFile ins_initcl( ".bcc_initcl" );
  10.  
  11. Prf Prefs;
  12.  
  13. Prf::~Prf()
  14. {
  15.  
  16.     SafeFScan( TextItem, ti, &textlist ) {
  17.         ti->Remove();
  18.         delete ti;
  19.     }
  20.  
  21. }
  22.  
  23. Prf::Prf( void )
  24. {
  25.     deftype = "MUI";
  26.     incdir = "ENV:bcc/";
  27.     nosaveds = publicheader = forcetrans = verbose = noversion = 0;
  28.     tagbase = 0;
  29.     reallines = 0;
  30. }
  31.  
  32. char *Prf::AddText( char *t, short len )
  33. {
  34.     TextItem *ti;
  35.  
  36.     ti = new TextItem( t, len );
  37.  
  38.     textlist.AddTail( (Family*)ti );
  39.  
  40.     return ti->Name;
  41.  
  42. }
  43.  
  44.